package router

import (
	"api-gateway/handler/api"
	"github.com/gin-gonic/gin"
)

func LoadRouter(r *gin.Engine) {
	routerGroup := r.Group("v1")
	{
		apiLogin := routerGroup.Group("api")
		{
			apiLogin.POST("login", api.Login)

		}
		apiPack := routerGroup.Group("api")
		{
			apiPack.POST("listPack", api.ListPack)
			apiPack.POST("weightPack", api.WeightPack)
			apiPack.POST("sortPack", api.SortPack)
			apiPack.POST("putSms", api.PutSms)
			apiPack.POST("putPack", api.PutPack)
		}
	}
}
